<template>
	<view >
		<u-popup :show="selectAddressShow" closeable @close="selectAddressShow = false" :round="12">
			<view class="content-box padlr24 padtb40 pad-b160 ctt">
				<view class="block-tit f-s36 txt-center">
					选择地址
				</view>
				<view class="list-box">
					<view class="list-li flex-a ju-bt mar-t48" v-for="(item, index) in 5">
						<view class="li-l">
							<view class="li-address-txt">
								后湖设计创意园产业促进中心2区3栋4单元3601
							</view>
							<view class="li-user-info mar-t16">
								<text >
									张女士
								</text>
								<text class="mar-l64">135****2312</text>
							</view>
						</view>
						<view class="">
							<u--image
								:showLoading="true" 
								:src="getImg('edit-icon')" 
								width="40rpx"
								height="40rpx"
							></u--image>
						</view>
					</view>
				</view>
				<view class="fot-box flex-center">
					<view class="fot-btn" @click="onAdd">
						新增地址
					</view>
				</view>
			</view>
		</u-popup>
		<addAddress ref="addAddressRef"></addAddress>
	</view>
</template>

<script>
	import addAddress from "./addAddress.vue"
	export default {
		components: {
			addAddress
		},
		name: "", // 选择地址
		data() {
			return {
				selectAddressShow: false,
			}
		},
		methods: {
			onAdd() {
				this.selectAddressShow = false;
				this.$refs.addAddressRef.addAddressShow = true
			},
		}
	}
</script>

<style lang="scss" scoped>
	.ctt{
		background-color: #FFFFFF !important;
	}
	
	.fot-box {
		.fot-btn {
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 28rpx;
			color: #FFFFFF;
			width: 512rpx;
			height: 80rpx;
			background: #FF7171;
			border-radius: 16rpx;
		}
	}
	.list-box {
		max-height: 600rpx;
		overflow-y: scroll;
		.list-li {
			.li-l {
				width: calc(100% - 60rpx);
				.li-address-txt {
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #111111;
				}
				.li-user-info {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #666666;
				}
			}
		}
	}
</style>